<?php
/**
 * Created by PhpStorm.
 * User: 王 朋
 * Date: 2018/5/28
 * Time: 21:54
 */
namespace application\common\controller;
use application\common\controller\Base;

class Util extends Base
{
    public static function str_is_int($str) {
        if (preg_match("#^[0-9]+$#", $str)) {
            return true;
        }else {
            return false;
        }
    }

    public static function filter_str ($str) {
        return htmlspecialchars($str, ENT_QUOTES);
    }
}